package demo1;

class Employee {
    private String name;
    private String employeeNumber;
    private double salary;

    public Employee(String name, String employeeNumber, double salary){
        this.name = name;
        this.employeeNumber = employeeNumber;
        this.salary = salary;
        System.out.println("创建员工对象："+name);
    }

    public void work(){
        System.out.println("员工：" + name+ "，工号：" + employeeNumber + "，正在工作....");
        System.out.println("工资："+salary+"元");
    }
}
